<!DOCTYPE html>
<html lang="en" xmlns:model-v="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>双向数据渲染</title>
</head>
<body>
<div id="app">
    <h1>{{message}}</h1>
    <input type="text" v-model="hobby.val"><br/>
    <input type="text" v-bind:value="hobby.val"><br/>
    <p>你输入的爱好是: {{hobby.val}}</p>
</div>
<script src="vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            message: "hi,输入你的爱好",
            hobby:{
                val: "购物"
            }
        }
    })
</script>
</body>
</html>